/**
 * Copyright 2024 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

@use "@angular/material" as mat;

$BUTTON_SIZE: 25px;
$ICON_SIZE_DIFF: 8px;
$BUTTON_COLOR: mat.m2-get-color-from-palette(mat.$m2-indigo-palette, 600);
$BUTTON_HOVER_COLOR: mat.m2-get-color-from-palette(mat.$m2-indigo-palette, 500);
$ICON_COLOR: mat.m2-get-color-from-palette(mat.$m2-indigo-palette, 100);

.button {
  height: 25px;
  appearance: none;
  border: none;
  width: $BUTTON_SIZE;
  height: $BUTTON_SIZE;
  display: flex;
  justify-content: center;
  align-items: center;

  mat-icon {
    width: $BUTTON_SIZE - $ICON_SIZE_DIFF;
    height: $BUTTON_SIZE - $ICON_SIZE_DIFF;
    font-size: $BUTTON_SIZE - $ICON_SIZE_DIFF;
  }

  color: $ICON_COLOR;
  padding: 0px;
  background-color: $BUTTON_COLOR;

  &:hover {
    background-color: $BUTTON_HOVER_COLOR;
    cursor: pointer;
  }
}
